<!DOCTYPE html>
<html>
<head lang="en">
    <meta name="viewpoint" content="width=device-width,initial-scale=1.0">
    <meta charset="UTF-8">
    <title>排班表</title>
    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <script src="../js/jQuery-2.1.4.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
    <link href="../css/table.css" rel="stylesheet" type="text/css">

</head>
<body>
  <div class="container">
      <div class="row">
          <div class="col-md-10 col-md-offset-1" >
              <form name="table.html" class="form-group">
                  <table class="table table-bordered table-hover" >
                      <caption class="head-title">门诊部班表</caption>
                      <thead class="head">
                      <tr class="head-group">
                          <th>医生</th>
                          #foreach($week in $weekList)
                          <td>$week</td>
                          #end
                      </tr>
                      </thead>
                      <tbody>
                      #foreach($doctor in $doctorMap.entrySet())
                      <tr>
                          <td rowspan="2">$doctor.key</td>
                          #foreach($week in $weekList)
                          #foreach($weekMap in $doctor.value.entrySet())
                          <td>
                              #if($weekMap.getKey()==$week)
                              #foreach($organizationMap in $weekMap.value.entrySet())
                              #foreach($departmentMap in $organizationMap.value.entrySet())
                              #foreach($time in $departmentMap.value.entrySet())
                              $time.key~$time.value
                              ($departmentMap.key)
                              ($organizationMap.key)
                              #end
                              #end
                              #end
                              #end
                          </td>
                          #end
                          #end
                      </tr>
                      #end
                      </tbody>
                  </table>
              </form>
          </div>
      </div>
  </div>
</body>
</html>